package com.hlz.mid.mq.producer.common;

import org.springframework.amqp.core.DirectExchange;
import org.springframework.context.annotation.Configuration;

/**
 * @author Hongliang Zhu
 * @create 2022-11-21 21:48
        */
@Configuration
public class QueueConfig {
    public DirectExchange bookExchange() {
        return new DirectExchange("TestDirectExchange", true, false);//设置交换机名
    }

}
